package com.jxb.api;

import org.springframework.stereotype.Component;

import feign.hystrix.FallbackFactory;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/11/8 21:55
 **/
@Component
public class UmsMemberFeginFallbackFactory implements FallbackFactory<OrderFeignService> {

    @Override
    public OrderFeignService create(Throwable throwable) {
        return new OrderFeignService() {
            @Override
            public String findOrderByUserId(Integer userId) {
                return "降级成功";
            }
        };
    }
}
